package com.semidata.trp.business.model;

import java.sql.Timestamp;

public class OrganizationModel {

    private int id;
    private boolean deleted;
    private double inBalance;
    private double outBalance;
    private double allyBalance;
    private int type;
    private Timestamp lastUpdate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

	public double getInBalance() {
		return inBalance;
	}

	public void setInBalance(double inBalance) {
		this.inBalance = inBalance;
	}

	public double getOutBalance() {
		return outBalance;
	}

	public void setOutBalance(double outBalance) {
		this.outBalance = outBalance;
	}

	public double getAllyBalance() {
		return allyBalance;
	}

	public void setAllyBalance(double allyBalance) {
		this.allyBalance = allyBalance;
	}

    public Timestamp getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Timestamp lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
    	StringBuffer sb = new StringBuffer();
    	sb.append("OrganizationModel [id=");
    	sb.append(id);
    	sb.append(", deleted=");
    	sb.append(deleted);
    	sb.append(", in_balance=");
    	sb.append(inBalance);
    	sb.append(", out_balance=");
    	sb.append(outBalance);
    	sb.append(", ally_balance=");
    	sb.append(allyBalance);
    	sb.append(", type=");
    	sb.append(type);
    	sb.append(", lastUpdate=");
    	sb.append(lastUpdate);
    	sb.append("]");
    	return sb.toString();
        //return "OrganizationModel [id=" + id + ", deleted=" + deleted + ", balance=" + balance + ", type=" + type + ", lastUpdate=" + lastUpdate + "]";
    }
}
